<?php

class ContentElement extends Duplo {

    public function getDir() {
        return DIR_MODULES.__CLASS__.'/';
    }

    public function defaultAction() {
        return $this->newsAction();
    }

    public function newsAction() {
        $news = new News();
        $this->addRequirements($news->getRequirements());
        $news->run();
        return $news->getOutput();
    }

    public function errorAction() {
        return $this->defaultAction();
    }

}